package mypackage.bean;

import java.util.Date;

/**
 * @author YH925
 * @create 2021/12/10 22:26
 */
public class Comments {
    private int id;
    private int clientId;
    private Clients clients;
    private Date cDate;
    private int stars;
    private String contents;
    private String goodsId;
    private Goods goods;
    private String username;

    public Comments() {
    }

    public Comments(int id, int clientId, Clients clients, Date cDate, int stars, String contents, String goodsId, Goods goods, String username) {
        this.id = id;
        this.clientId = clientId;
        this.clients = clients;
        this.cDate = cDate;
        this.stars = stars;
        this.contents = contents;
        this.goodsId = goodsId;
        this.goods = goods;
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getClientId() {
        return clientId;
    }

    public void setClientId(int clientId) {
        this.clientId = clientId;
    }

    public Clients getClients() {
        return clients;
    }

    public void setClients(Clients clients) {
        this.clients = clients;
    }

    public Date getcDate() {
        return cDate;
    }

    public void setcDate(Date cDate) {
        this.cDate = cDate;
    }

    public int getStars() {
        return stars;
    }

    public void setStars(int stars) {
        this.stars = stars;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "Comments{" +
                "id=" + id +
                ", clientId=" + clientId +
                ", clients=" + clients +
                ", cDate=" + cDate +
                ", stars=" + stars +
                ", contents='" + contents + '\'' +
                ", goodsId='" + goodsId + '\'' +
                ", goods=" + goods +
                ", username='" + username + '\'' +
                '}';
    }
}
